package com.patentbackend.patentmanage.service;

import com.patentbackend.patentmanage.dto.LegalDocumentDTO;
import com.patentbackend.patentmanage.entity.LegalDocument;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.Optional;

public interface LegalDocumentService {
    LegalDocument create(LegalDocumentDTO documentDTO);
    LegalDocument update(Long id, LegalDocumentDTO documentDTO);
    boolean existsById(Long id);
    Page<LegalDocument> findAll(Pageable pageable);
    Optional<LegalDocument> findById(Long id);
    void delete(Long id);
    String uploadFile(Long documentId, MultipartFile file) throws IOException;
}